import request from '@/utils/request';

export async function UserList (data){
  return request("/api/usersManage?page="+data.page+'&limit='+data.limit,{
    method:"GET",
  })
}

export async function createUser (body){
  return request('/api/usersManage',{
    method:'POST',
    body
  });
}

export async function updateUser (id,data){
  return request('/api/usersManage/'+id,{
    method:'PUT',
    body:data
  });
}

export async function deleteUser (id){
  return request('/api/usersManage/'+id,{
    method:'DELETE',
  });
}